{% extends "site_base.html" %}

{% block head_title %}Pinax : Obols for {{ group }}{% endblock %}

{% block body %}

	<h4>You have {{ obols_to_give }} obols to give in Project {{ group }}</h4>

	{% if event_form %}
		<form  id="event_form" method="POST" action="" >		
			<table>
				<tr>
					<th>To whom</th>
					<td>Task</td>
					<td>Description</td>
					<th>Obols</th>
				</tr>
				<tr>
					<td>{{ event_form.to_whom }}</td>
					<td>{{ event_form.task }}</td>
					<td>{{ event_form.what_for }}</td>
					<td>{{ event_form.obols }}</td>
					<td>
						<input type="submit" value="Give obols" />
					</td>
				</tr>	
			</table>
		</form>
	{% endif %}

	<h2>Obol scores for members of Project {{ group }}</h2>
	{% for item in obol_list %}
		<p><span style='font-size: 125%;' >{{ item.agent }}: {{ item.obols }}</span> <a href="{% url member_obols group.slug,obol_agent=item.agent.name %}">details</a></p>
	{% endfor %}

{% endblock %}